for each loop class jquery

109

for each loop class jquery -

$('.testimonial').each(function(i, obj) {
    //test
});

jquery loop over elements -

$( "li" ).each(function( index ) {
  console.log( index + ": " + $( this ).text() );
});

javascrip for each element of class -

var slides = document.getElementsByClassName("slide");
for (var i = 0; i < slides.length; i++) {
   Distribute(slides.item(i));
}

Comments

Submit
0 Comments